import { Entity, Column } from 'typeorm';
import { Abstract } from '@entity/abstract.entity';

@Entity()
export class QyUser extends Abstract {
  @Column({
    nullable: true,
  })
  corpId: string;
  @Column({
    nullable: true,
  })
  userId: string;

  @Column({
    nullable: true,
  })
  name: string;

  @Column({
    nullable: true,
  })
  department: string;

  @Column({
    nullable: true,
  })
  gender: string;

  @Column({
    nullable: true,
  })
  avatar: string;

  @Column({
    nullable: true,
  })
  status: number;

  @Column({
    nullable: true,
  })
  order: string;

  @Column({
    nullable: true,
  })
  mainDepartment: number;

  @Column({
    nullable: true,
  })
  isLeaderInDept: string;

  @Column({
    nullable: true,
  })
  thumbAvatar: string;

  @Column({
    nullable: true,
  })
  openUserId: string;
}
